<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>


<h1><fmt:message key="permission.form.pagetitle"/></h1>
<c:url var="viewPermsUrl" value="/admin/perm/list" />
<a href="${viewPermsUrl}"><fmt:message key="permission.view.title"/></a>
<br /><br />

<c:url var="savePermissionUrl" value="/admin/perm/save" />
<form:form modelAttribute="permission" method="POST" action="${savePermissionUrl}">
	<form:hidden path="id"/>
	<table collspadding="0px" border="0px" width="800px">
		<tr>
			<td width="80px"><form:label path="name"><fmt:message key="permission.form.name"/>:</form:label></td>
			<td width="200px"><form:input path="name"/></td>
			<td width="200px"><form:errors path="name" cssClass="formerror" /></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="<fmt:message key="buttons.save"/>" /></td>
			<td></td>
		</tr>
	</table>
	
</form:form>
